<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="/api/js/jquery.min.js"></script>
    <script src="/index.php?m=res&f=apijs"></script>
</head>
<body>

<ul id="target123">

    <li>...</li>

</ul>

<div id="source" style="display: none">
    <li><a href="{data.url}">{data.title}</a></li>

</div>
<button id="next" onclick="next()">下一页</button>
<script>
    var page = 1 ;
    var count = 2 ;
    var cid = 20 ;
    //限制字符字数
    var cut = new Object();
    cut.title = 1;
    cut.remark = 20 ;

    //完成的回调函数
    var callback = function (counts) {
        if(counts==0){
            //
            $("#next").attr("disabled","disabled");
            $("#next").html("没有更多内容了");
        }
    }
    function next() {
        getnextpage(cid,page,count,"source","target123",callback,cut);
        page = page+1 ;
    }

</script>







</body>
</html>


